package com.slmxz.tms.biz.service;

import com.slmxz.tms.biz.model.entity.Order;
import com.slmxz.tms.biz.model.vo.OrderVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 订单服务类
 *
 * @author sunyao
 *@Date 2024-10-08 16:58
 */
public interface OrderService extends IService<Order> {

    /**
     *订单分页列表
     *
     * @return
     */
    IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order);

    /**
     * @param id 订单ID
     * @return
     */
     OrderVO selectOrderDetail(Long id);

    /**
     * 新增订单
     * @return
     */
    boolean saveOrder(OrderVO order) throws Exception;

    /**
     * 修改订单
     * @return
     */
    boolean updateOrder(OrderVO order) throws Exception;

    /**
     * 订单审核
     * @return
     */
    boolean checkOrder(OrderVO order) throws Exception;

    /**
     * 删除订单
     *
     * @param ids 订单ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteOrders(String ids);

    /**
   * 激活或者注销
   * @return
   */
    boolean activeOrLogout(OrderVO order);

}
